package com.lagou.client;

import com.lagou.service.UserService;

/**
 * 客户端启动类
 * @author yzh
 */
public class ClientBootStrap {

    public static void main(String[] args) throws InterruptedException {
        RpcConsumer rpcConsumer = new RpcConsumer();
        UserService proxy = (UserService) rpcConsumer.createProxy(UserService.class);
        while (true){
            Thread.sleep(2000);
            System.out.println(proxy.sayHello("are you ok?"));
        }
    }

}
